package com.more.offer.threadtest.semaphoretest;

/**
 * @author pinoc
 * @date 2022/6/17
 */
public class ThreadB extends Thread{
	private SemaphoreSingleTest semaphoreSingleTest;

	public ThreadB(SemaphoreSingleTest semaphoreSingleTest) {
		this.semaphoreSingleTest = semaphoreSingleTest;
	}

	@Override
	public void run() {
		semaphoreSingleTest.test();
	}
}